import request from './request'
export function search(data) {
    return request({
        url: 'share/auth-service/client/search',
        method: 'post',
        data
    })
}

export function deleteData(data) {
    return request({
        url: 'share/auth-service/client',
        method: 'delete',
        data
    })
}

export function getById(params) {
    return request({
        url: 'share/auth-service/client/Id/'+params,
    })
}

export function saveOrUpdate(data,action) {
    return request({
        url: 'share/auth-service/client/'+action,
        method: 'post',
        data
    })
}

export function clientCheck(params) {
    return request({
        url: 'share/auth-service/oauth/clientCheck/'+params,
    })
}